<script>
export default {
  props: ['list']
}
</script>

<template>
  <div class="category-group">
    <div class="cell" v-for="(item,$index) in list" :key="$index">
      <image class="img" :src="item.img_url"></image>
      <text class="product_name">{{item.product_name}}</text>
    </div>
  </div>
</template>
<style scoped>
.category-group {
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
}

.cell {
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 25px;
}

.img {
  width: 130px;
  height: 130px;
  margin-right: 10px;
  margin-left: 10px;
  margin-bottom: 25px;
}

.product_name {
  text-align: center;
  font-size: 25px;
  color: #999;
}
</style>
